home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.compilers / comp.sys.amiga.programmer_5222_000021.msg < prev    next >
Encoding:
Text File  |  1994-11-27  |  1.8 KB  |  44 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: dd.chalmers.se!news.chalmers.se!sunic!pipex!howland.reston.ans.net!europa.eng.gtefsd.com!emory!news-feed-2.peachnet.edu!concert!sas!mozart.unx.sas.com!jamie
  3. From: jamie@cdevil.unx.sas.com (James Cooper)
  4. Subject: Re: SAS Keywords (__saveds etc)
  5. Originator: jamie@cdevil.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <CKI1BK.FMH@unx.sas.com>
  8. Date: Mon, 31 Jan 1994 14:52:30 GMT
  9. References: <inf01.759746947@apollo23> <CKCG1B.Lzq@unx.sas.com> <2iiptt$soe@ugle.unit.no>
  10. Nntp-Posting-Host: cdevil.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 30
  13.  
  14.  
  15. In article <2iiptt$soe@ugle.unit.no>, shansen@idt.unit.no (Staale L. Hansen) writes:
  16. >In article <CKCG1B.Lzq@unx.sas.com>, jamie@cdevil.unx.sas.com (James Cooper) writes:
  17. >[...]
  18. >|>         int __asm foo(register __a3 char *bar);
  19. >|>
  20. >|> This says that function "foo" will receive its only parameter in register
  21. >|> A3, rather than the default for pointers of A0.
  22. >
  23. >But how do you specify which register the return value will be in? As
  24. >far as I can see there is NO way to do this, you get register D0
  25. >whether you like it or not.
  26.  
  27. Well, if you have SAS/C V6.50+, you could use the '#pragma amicall'
  28. directive we added for MANX support.  It allows specifying a different
  29. return register than D0 (though D0 is still the default).
  30.  
  31. I've never needed this, but I'm sure someone could come up with a case
  32. where it would be handy... I probably could as well, if I thought about
  33. it a while...  :-)
  34.  
  35. -- 
  36. ---------------
  37. Jim Cooper
  38. (jamie@unx.sas.com)                             bix: jcooper
  39.  
  40. Any opinions expressed herein are mine (Mine, all mine!  Ha, ha, ha!),
  41. and not necessarily those of my employer.
  42.  
  43. Remember, "Euphemisms are for the differently brained."
  44.